package com.haohope.framework.wb.lock;

import java.util.concurrent.TimeUnit;
import com.haohope.framework.lock.ILock;

public abstract class UserListLock implements ILock{
	public abstract void _lock();
	@Override
	public void lock() {
		_lock();
	}
	public abstract void _lockInterruptibly() throws InterruptedException ;
	@Override
	public void lockInterruptibly() throws InterruptedException {
		_lockInterruptibly();
	}

	public abstract boolean _tryLock() ;
	@Override
	public boolean tryLock() {
		return _tryLock();
	}

	public abstract boolean _tryLock(long time, TimeUnit unit) throws InterruptedException;
	@Override
	public boolean tryLock(long time, TimeUnit unit) throws InterruptedException {
		return _tryLock(time,unit);
	}
	public abstract void _unlock() ;
	@Override
	public void unlock() {
		_unlock();
	}
}
